package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * C端用户表
 * </p>
 *
 * @author stylefeng123
 * @since 2018-01-21
 */
@TableName("c_webuser")
public class Webuser extends Model<Webuser> {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 姓名
     */
    private String fullname;
    /**
     * 手机号
     */
    private String telno;
    /**
     * 所属省份
     */

    private Integer province;
    /**
     * 所属城市
     */
    private Integer city;
    /**
     * 身份证号
     */
    @TableField("id_card")
    private String idCard;
    /**
     * 身份证正面
     */
    @TableField("id_card_img1")
    private String idCardImg1;
    /**
     * 身份证反面
     */
    @TableField("id_card_img2")
    private String idCardImg2;
    /**
     * 实名状态:未实名/已实名，默认未实名
     */
    @TableField("id_card_status")
    private Integer idCardStatus;
    /**
     * 实名认证申请时间
     */
    @TableField("id_card_apply_time")
    private Date idCardApplyTime;
    /**
     * 实名认证成功时间
     */
    @TableField("id_card_confirm_time")
    private Date idCardConfirmTime;
    /**
     * 当前积分数
     */
    @TableField("integral_number")
    private Integer integralNumber;
    /**
     * 账户余额
     */
    @TableField("balance_amount")
    private BigDecimal balanceAmount;
    /**
     * 账户余额-备用
     */
    @TableField("balance_amount1")
    private BigDecimal balanceAmount1;
    /**
     * 账户余额-备用
     */
    @TableField("balance_amount2")
    private BigDecimal balanceAmount2;
     /**
     * 我的邀请码ID
     */
    @TableField("Invite_id")
    private String inviteId;
    /**
     * 用户状态:正常、锁定、删除
     */
    private Integer status;
    /**
     * 登录密码
     */
    @TableField("login_password")
    private String loginPassword;
    /**
     * 支付密码
     */
    @TableField("pay_password")
    private String payPassword;
    /**
     * 是否大咖:1代表是
     */
    private Integer ishigher;
    /**
     * 交易额排名
     */
    @TableField("trade_rank")
    private Integer tradeRank;
    /**
     * 累计交易额
     */
    @TableField("trade_amount")
    private BigDecimal tradeAmount;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;

    private String avatar;

    private Integer version;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public String getTelno() {
        return telno;
    }

    public void setTelno(String telno) {
        this.telno = telno;
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getIdCardImg1() {
        return idCardImg1;
    }

    public void setIdCardImg1(String idCardImg1) {
        this.idCardImg1 = idCardImg1;
    }

    public String getIdCardImg2() {
        return idCardImg2;
    }

    public void setIdCardImg2(String idCardImg2) {
        this.idCardImg2 = idCardImg2;
    }

    public Integer getIdCardStatus() {
        return idCardStatus;
    }

    public void setIdCardStatus(Integer idCardStatus) {
        this.idCardStatus = idCardStatus;
    }

    public Integer getIntegralNumber() {
        return integralNumber;
    }

    public void setIntegralNumber(Integer integralNumber) {
        this.integralNumber = integralNumber;
    }

    public BigDecimal getBalanceAmount() {
        return balanceAmount;
    }

    public void setBalanceAmount(BigDecimal balanceAmount) {
        this.balanceAmount = balanceAmount;
    }

    public BigDecimal getBalanceAmount1() {
        return balanceAmount1;
    }

    public void setBalanceAmount1(BigDecimal balanceAmount1) {
        this.balanceAmount1 = balanceAmount1;
    }

    public BigDecimal getBalanceAmount2() {
        return balanceAmount2;
    }

    public void setBalanceAmount2(BigDecimal balanceAmount2) {
        this.balanceAmount2 = balanceAmount2;
    }

    public String getInviteId() {
        return inviteId;
    }

    public void setInviteId(String inviteId) {
        this.inviteId = inviteId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    public Integer getIshigher() {
        return ishigher;
    }

    public void setIshigher(Integer ishigher) {
        this.ishigher = ishigher;
    }

    public Integer getTradeRank() {
        return tradeRank;
    }

    public void setTradeRank(Integer tradeRank) {
        this.tradeRank = tradeRank;
    }

    public BigDecimal getTradeAmount() {
        return tradeAmount;
    }

    public void setTradeAmount(BigDecimal tradeAmount) {
        this.tradeAmount = tradeAmount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getIdCardApplyTime() {
        return idCardApplyTime;
    }

    public void setIdCardApplyTime(Date idCardApplyTime) {
        this.idCardApplyTime = idCardApplyTime;
    }

    public Date getIdCardConfirmTime() {
        return idCardConfirmTime;
    }

    public void setIdCardConfirmTime(Date idCardConfirmTime) {
        this.idCardConfirmTime = idCardConfirmTime;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Webuser{");
        sb.append("id=").append(id);
        sb.append(", nickname='").append(nickname).append('\'');
        sb.append(", fullname='").append(fullname).append('\'');
        sb.append(", telno='").append(telno).append('\'');
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", idCard='").append(idCard).append('\'');
        sb.append(", idCardImg1='").append(idCardImg1).append('\'');
        sb.append(", idCardImg2='").append(idCardImg2).append('\'');
        sb.append(", idCardStatus=").append(idCardStatus);
        sb.append(", idCardApplyTime=").append(idCardApplyTime);
        sb.append(", idCardConfirmTime=").append(idCardConfirmTime);
        sb.append(", integralNumber=").append(integralNumber);
        sb.append(", balanceAmount=").append(balanceAmount);
        sb.append(", balanceAmount1=").append(balanceAmount1);
        sb.append(", balanceAmount2=").append(balanceAmount2);
        sb.append(", inviteId='").append(inviteId).append('\'');
        sb.append(", status=").append(status);
        sb.append(", loginPassword='").append(loginPassword).append('\'');
        sb.append(", payPassword='").append(payPassword).append('\'');
        sb.append(", ishigher=").append(ishigher);
        sb.append(", tradeRank=").append(tradeRank);
        sb.append(", tradeAmount=").append(tradeAmount);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", avatar='").append(avatar).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
